﻿<%@ Import Namespace="Model.WWW_WWW.translate" %>
<%@ Control Language="C#" AutoEventWireup="true" Inherits="Web.Control.WWW.translate.translate_list" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
				<div class="submenu3"></div>
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1>All translate: <%= LangName %></h1>
								<div class="copyright"><a href="/translate">Translate</a> > All translate: <%= LangName %></div>
							</div>
							<div class="submenuN_button"></div>
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="center9001common">
						<div class="Center9001Content">
							<div class="translate_area">
								<% if (AllTranslateItem != null) {%>
								<p><strong>Total: <%= ContentCount %></strong></p>
								<table width="870" border="0" cellspacing="0" cellpadding="3">
									<% foreach (TranslateItem ti in AllTranslateItem) {%>
									<tr>
										<td class="my_trans_con" width="70%"><a href="/translate/translate.htm?lang=<%= Request.QueryString["lang"] %>&id=<%= ti.ItemNo %>"><%= HighLightCode(ti.ItemText) %></a></td>
										<td width="30%" align="right" class="my_trans_status"><%= (ti.IsGoodAnswer ? "<span style='color:#008800'>Completed</span>" : (ti.IsHaveTranslate ? "<span style='color:#999999'>Waiting for best translation to be selected</span>" : "<span style='color:#999999'>No translations yet</span>"))%></td>
									</tr>
									<%}%>
								</table>
								<%} else {%>
								No Item!
								<%}%>
								<div id="divPage" class="margin20T">
								<%=CreatePageNav(ContentCount, PageSize, PageIndex, "",
								string.Format("<span class='page_none grey10'><a href='{0}/translate/translate_list.htm?lang={1}&p=$I$'>{2}</a></span>&nbsp;",WWWHost, Request.QueryString["lang"], HttpUtility.UrlEncode(GetText("Prev"))),
								"", string.Format("<span class='page_none grey10'><a href='{0}/translate/translate_list.htm?lang={1}&p=$I$'>{2}</a></span>&nbsp;", WWWHost, Request.QueryString["lang"], HttpUtility.UrlEncode(GetText("Next"))),
								string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
								string.Format("<span class='page_none grey10'><a href='{0}/translate/translate_list.htm?lang={1}&p=$I$'>$I$</a></span>&nbsp;", WWWHost,Request.QueryString["lang"])
								)%>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>